package DesignPatern.A20_状态模式.QSB.A01_基础模式;

/**
 * @Author: Du
 * @Date: 2021/8/6 9:29
 */
public class OpeningState extends LiftState
{
    
    @Override
    public void open()
    {
        System.out.println("电梯门开启");
    }
    
    @Override
    public void close()
    {
        super.context.setLiftState(Context.close);//直接调用关闭时的状态
        super.context.getLiftState().close();
    }
    
    @Override
    public void run()
    {
    
    }
    
    @Override
    public void stop()
    {
    
    }
}
